# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >

project(TextEdit)

include_directories(BEFORE "${CMAKE_SOURCE_DIR}/libs")

set(TextEdit_SRCS textPlugin.cpp)
QT4_WRAP_CPP(TextEdit_SRCS textPlugin.h)

add_library(TextEdit SHARED ${TextEdit_SRCS})
add_dependencies(TextEdit KontAMabil)
link_directories( "${CMAKE_SOURCE_DIR}/libs" )
target_link_libraries(TextEdit KontAMabil ${QT_LIBRARIES})

install(TARGETS TextEdit DESTINATION "${QT_PLUGINS_DIR}/designer" LIBRARY)
install(TARGETS TextEdit ${INSTALL_DESIGNER_PLUGINS_DEFAULT_ARGS} )

